// 楼栋
import {
    ajaxP,
    ajaxBack
} from '@/utils/data/request'

export function list(params: any) {
    return ajaxBack({
        url: `lease/list`,
        method: 'post',
        data: params
    })
}

export function add(param: any) {
    return ajaxP('lease/create', param)
}

export function edit(param: any) {
    return ajaxP('lease/edit', param)
}
// 解约
export function disengage(param: any) {
    return ajaxP('lease/jy', param)
}
// 续期
export function renewal(param: any) {
    return ajaxP('lease/renew', param)
}